package com.jack.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.jack.dto.CartDto;
import com.jack.model.ProductInfo;

public interface ProductInfoService {

	ProductInfo findOne(String productId);
	/**
	 *all in sale 
	 */
	List<ProductInfo> findUpAll();
	
	Page<ProductInfo> findAll(Pageable pagebale);
	
	ProductInfo save(ProductInfo productInfo);
	
	void increaseStock(List<CartDto> cartDto);

	void decreaseStock(List<CartDto> cartDto);

}
